using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

namespace WMOSSExperts.PackageBuilder.Addin
{
    public class PackageConfiguration
    {

        private XmlDocument _document;

        public XmlDocument Datasource
        {
            get
            {
                if (_document==null) _document = new XmlDocument();
                return _document;
            }
        }

        internal void CreateConfigurationFile(String configurationFilePath)
        {
            if (System.IO.File.Exists(configurationFilePath)) System.IO.File.Delete(configurationFilePath);

            System.Xml.XmlDocument configurationFile = new System.Xml.XmlDocument();

            //Create the Guid Node
            XmlNode solutionId = configurationFile.CreateNode(XmlNodeType.Element, "SolutionId", String.Empty);



            configurationFile.Save(configurationFilePath);
        }
    }
}
